#source 
function upload_and_exec() {
  ssh $host 'rm -rf $HOME/'$root_path'/'
  ssh $host 'mkdir -p $HOME/'$root_path

  scp -r $shell_path$shell_file $host:'$HOME/'$root_path'/'$shell_file
  scp -r $conf_path'/' $host:'$HOME/'$root_path'/'$conf_path

  ssh $host 'mkdir -p $HOME/'$root_path'/'$tools_path
  scp -r $tools_path'/'* $host:'$HOME/'$root_path'/'$tools_path

  ssh $host 'chmod +x $HOME/'$root_path'/'$shell_file  
  ssh $host 'sh $HOME/'$root_path'/'$shell_file' run'
}